package com.xixibaby.validator;

import java.lang.annotation.*;

/**
 * @author tooomj
 */
@Repeatable(ApiValid.List.class)
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.CONSTRUCTOR, ElementType.LOCAL_VARIABLE,ElementType.TYPE_PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface ApiValid {
    String[] actions() default {};
    String value() default "";
    ValidEnum type() default ValidEnum.NULL;

    @Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.CONSTRUCTOR, ElementType.LOCAL_VARIABLE,ElementType.TYPE_PARAMETER})
    @Retention(RetentionPolicy.RUNTIME)
    @interface List {
        ApiValid[] value();
    }
}